<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="jquery-1.8.3.min.js"></script>
<title>Insert title here</title>
<script type="text/javascript">
	function getApplet() { 
		alert(document.test.appletName)
		document.test.win();
	}
	
	function myFunction(filePath){
		$.ajax({   
			url:"${pageContext.request.contextPath}/TestServlet",   
			type:"post",   
			//data:'merName='+values,   
			async : false, //默认为true 异步   
			error:function(){   
				alert('error');   
			},   
			success:function(data){   
				$("#imiageCharInfo").text(data);
				alert(data);
			}
		});
	}
</script>
</head>
<body>
<applet id="test" name="test" height="0" width="0" code="ij.ImageJApplet.class" codebase="."></applet>
<form name="textForm">
	<textField id="imiageCharInfo">fasdfasdf</textField>
</form>

<button onclick="getApplet()">aaaaa</button>
<button onclick="myFunction()">bbbbb</button>
</body>
</html>